package com.security.door.service.Impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.security.door.core.base.BaseService;
import com.security.door.dao.mapper.recordDoorMapper;
import com.security.door.model.domain.recordDoor;
import com.security.door.model.dto.recordDoorDto;
import com.security.door.service.IrecordDoorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class recordDoorServiceImpl extends BaseService<recordDoor> implements IrecordDoorService {
    
    @Autowired
    recordDoorMapper irecordDoorMapper;

    @Override
    public PageInfo<recordDoor> queryListWithPage(recordDoorDto entity) {
        PageHelper.startPage(entity.getPageIndex(), entity.getPageSize());
        var actionList = irecordDoorMapper.queryListWithPage(entity);
        return new PageInfo<>(actionList);
    }
}
